//
//  MPCImageView+SDWebImage.h
//  Pods
//
//  Created by jiaxuzhou on 2017/7/24.
//
//

#import "MPCImageView.h"

NS_ASSUME_NONNULL_BEGIN


@interface MPCImageView (SDWebImage)

#if MPT_USE_SDWebImageSwitch

- (void)mptsd_cancelCurrentImageLoad;

- (UIImage *)sd_getCatcheMemoryImageWithImageURL:(NSURL *)imgUrl options:(MPWebImageOptions)options;

- (void)sd_getCatcheDiskImageWithImageURL:(NSURL *)imgUrl options:(MPWebImageOptions)options finish:(void (^)(UIImage *image))finish;

- (void)sd_downImageWithImageURL:(NSURL *)imgUrl
                         options:(MPWebImageOptions)options
                        progress:(MPWebImageDownloaderProgressBlock)progressBlock
                         success:(nullable MPWebImageSuccessBlock)success
                            fail:(nullable MPWebImageFailBlock)fail;

+ (void)sd_clearCatcheDisk:(void (^)())completion;

+ (void)sd_clearCatcheMemory;

#endif

@end

NS_ASSUME_NONNULL_END
